<script setup>
const props = defineProps({
  isLoading: {
    type: Boolean,
    default: true
  }
})
</script>

<template>
  <v-progress-circular v-if="isLoading" indeterminate color="primary" class="loading">
    数据正在加载中....
  </v-progress-circular>
</template>

<style scoped>
.loading {
  width: 50%;
  height: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>